﻿using M.AuditField;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace M.ShopMachine.Domain
{
    /// <summary>
    /// 车间表
    /// </summary>
    [Table("Workshop")]
    public class Workshop: AuditFields
    {
        [Key]
        public int Id { get; set; }
        /// <summary>
        /// 车间编号
        /// </summary>
        public string? WorkshopNumber { get; set; }
        /// <summary>
        /// 车间名称
        /// </summary>
        public string? WorkshopName { get; set; }
        /// <summary>
        /// 车间位置
        /// </summary>
        public string? WorkshopLocality { get; set; }
        /// <summary>
        /// 车间负责人
        /// </summary>
        public string? WorkshopPrincipal { get; set; }
        /// <summary>
        /// 联系方式
        /// </summary>
        public string? Contact { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public bool? State { get; set; }
    }
}
